<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
 <%@taglib prefix="s" uri="/struts-tags"%>

<%@page import="zozopo.background.operator.*" %>

<%@page import="zozopo.operations.business.*" %>
<%@page import="zozopo.background.operator.operations.*" %>
<%@page import="zozopo.database.*" %>
<%@page import="java.sql.*" %>

<%
	//String uri = (String)session.getAttribute("uri");
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>

  <head>
   
  	<script type='text/javascript' src="<%=basePath %>/jquery/jquery-1.4.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/comm/js/map.js"></script>
	<script src="<%=basePath %>/jquery/external/jquery.bgiframe-2.1.2.js"></script>
	<script src="<%=basePath %>/jquery/ui/jquery.ui.core.js"></script>
	<script src="<%=basePath %>/jquery/ui/jquery.ui.widget.js"></script>
	<script src="<%=basePath %>/jquery/ui/jquery.ui.mouse.js"></script>
	<script src="<%=basePath %>/jquery/ui/jquery.ui.draggable.js"></script>
	<script src="<%=basePath %>/jquery/ui/jquery.ui.position.js"></script>
	<script src="<%=basePath %>/jquery/ui/jquery.ui.resizable.js"></script>
	<script src="<%=basePath %>/jquery/ui/jquery.ui.dialog.js"></script>
	<script src="<%=basePath %>/jquery/ui/jquery.ui.datepicker.js"></script>
	<script src="<%=basePath %>/jquery/ui/jquery.ui.datepicker-zh-CN.js"></script>
	
	
	
 
<script type="text/javascript">

function openUrlForDialog(url){
	url = encodeURI(encodeURI(url));
	$("#dialog").dialog({ width: 800});
	
	$("#dialog").attr('innerHTML',"载入数据中...");
	
	
	$.get(url, function(data){
		  $( "#dialog" ).attr('innerHTML',data);
	});
}

</script>
	





 </head>
 <!--	-->


  <!--顶部导航>
 <div class="global_header">
 <div class="header clearfix">
 	buliding...
 </div>
</div>
<!--/顶部导航-->
  <div id="dialog" title="" class="width:800px;" style="display:none">
	<p></p>
</div>
   <ul id="menu">
    
    <li><a href="<%=basePath %>" class="drop">返回主页</a><!-- Begin Home Item -->
    
        <div class="dropdown_2columns"><!-- Begin 2 columns container -->
    
            <div class="col_2">
                <h2>主页 !</h2>
            </div>
    
            <div class="col_2">
                <p>您好!欢迎来到这里,这里个是崭新的世界.便捷简单.</p>             
                <p>希望你能到你想要的东西.</p>             
            </div>
    
            <div class="col_2">
                <h2>支持各种浏览器</h2>
            </div>
            
            <div class="col_1">
                <img src="<%=basePath %>/css/img/browsers.png" width="125" height="48" alt="" />
            </div>
            
            <div class="col_1">
                <p></p>
            </div>
          
        </div><!-- End 2 columns container -->
    
    </li><!-- End Home Item -->
    
    
    <s:if test="%{#session.operatorInfo == null}">
    
    <li class="menu_right"><a href="#" class="drop">登陆</a>
    
		<div class="dropdown_1column align_right">
        
                <div class="col_1">
                
                    <ul class="simple">
                        <li><a href="<%=basePath %>/background/login.jsp">后台登陆</a></li>
                        <li><a href="https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=100231532&redirect_uri=www.zozopo.com/background/operator/qqlogin_background.action&scope=get_user_info">QQ一键登陆管理员</a></li>
                      
                    </ul>   
                     
                </div>
                
		</div>
        
	</li>
	
   
	</s:if>
	<s:else>
	
		 
		  <li class="menu_right"><a href="<%=basePath %>/background/operator/info_background.action" class="drop"><s:property value="#session.operatorInfo.name_operator"/>(<s:property value="#session.operatorInfo.firstname_operator"/> <s:property value="#session.operatorInfo.lastname_operator"/>)</a>
    
		<div class="dropdown_1column align_right">
        
                <div class="col_1">
                
                    <ul class="simple">
                    	
                        <li>
                     <a href="/background/operator/premodifypassword_background.action">修改密码</a>
                      </li>
                       <li>
                      	<a href="/background/operator/premodifyoperatorinfo_background.action">修改基本信息</a>
			    		 </li>
			    	 <li>
			    		<a href="#">修改头像</a>
			    	 </li>
			    	
			    	 <li>
			    		
			    		<a href="#">绑定QQ</a>
			    	 </li>
			    	
			    	 <li>
			    	<a href="#">绑定EMAIL</a>
			    		
			    	 </li>
                      
                      
                      <li>
                      <A class="wgblk1CSS" href="<%=basePath %>/background/operator/loginout_background.action">退出</A>
                      </li>
                    </ul>   
                     
                </div>
                
		</div>
        
		</li>
	
		<li class="menu_right"><a href="#" class="drop">消息(未读xx)</a>
    
		<div class="dropdown_1column align_right">
        
                <div class="col_1">
                
                    <ul class="simple">
                       
                      <li>
                      <A class="wgblk1CSS" href="#">消息</A>
                      </li>
                    </ul>   
                     
                </div>
                
		</div>
        
		</li>
		
	</s:else>
    </ul>
